package com.suineg.pms.entity.base;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.suineg.pms.entity.IdEntity;
import com.suineg.pms.entity.User;

/**
 * 业主信息 实体类
 *@author Suine
 */
@Entity
@Table(name = "pms_house_owner")
public class HouseOwner extends IdEntity{
	/** 姓名 */
	private String name;
	/** 性别 */
	private String sex;
	/** 证件号码 */
	private String idNo;
	/** 工作单位  */
	private String workUnit;
	/** 联系电话 */
	private String tel;
	/** 操作人 */
	private User opuser;
	/** 操作时间 */
	private Date opdate;
	/** 备注 */
	private String memo;
	public HouseOwner() {
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getIdNo() {
		return idNo;
	}
	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
	public String getWorkUnit() {
		return workUnit;
	}
	public void setWorkUnit(String workUnit) {
		this.workUnit = workUnit;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	public User getOpuser() {
		return opuser;
	}
	public void setOpuser(User opuser) {
		this.opuser = opuser;
	}
	public Date getOpdate() {
		return opdate;
	}
	public void setOpdate(Date opdate) {
		this.opdate = opdate;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
}

